const express = require('express')
const router = require('./router/router')
const cors = require('cors')
const bodyParser = require('body-parser');
const app = express()
app.use(cors())
app.use(router)
app.use(bodyParser.json())
app.use(express.static(__dirname + '/static'))
app.listen(80, () => {
  console.log('服务器启动成功')
})